PATHMac OS 8 and 9 Developer Documentation > Interapplication Communication > AppleScript for Scripters >

AppleScript Language Guide

   

Reopen

Reopen is an application command that reactivates a running application. It has the same effect as double-clicking on the application's icon in the Finder when the application is already running. Because it may not be obvious to a user that anything happened after double-clicking an application icon when no windows for that application are open, the application may choose to open an untitled window or perform some other operation to make its activation known. If an application is not already running, sending it a Reopen command has the same effect as running the application--see Run.

Each application determines how it will implement the Reopen command. Some applications may perform their usual startup procedures, such as opening a new window, while others perform no additional operations.

SYNTAX
Reopen [ referenceToApplication ]
PARAMETER
referenceToApplication
A reference of the form application nameString (see "Notes"). This parameter is optional if the Reopen command is used within an appropriate Tell statement. Class: Reference
RESULT

None

EXAMPLES
Reopen application "SomeAppName" tell application "SomeAppName"
    Reopen
end tell
NOTES

To specify the name ( nameString ) of an application to reopen, use a string of the form " Disk : Folder1 : Folder2 :...: ApplicationName " ; for details, see References to Applications. You can also specify a string with only an application name (" ApplicationName "). In this case, AppleScript attempts to find the application using the Desktop Database maintained by the Finder.


© 1999 Apple Computer, Inc. – (Last Updated 21 May 99)